.fullscreen-modal {
  overflow: hidden;

  .ant-modal {
    inset: 0 !important;
    width: 100% !important;
    max-width: 100%;
    height: 100%;

    &-content {
      height: 100%;
      overflow: hidden;
    }
  }

  .ant-modal-footer {
    margin-top: 0;
  }
}

.ant-modal {
  width: 520px;
  padding-bottom: 0;

  .ant-modal-body > .scrollbar {
    padding: 14px;
  }

  &-title {
    font-size: 16px;
    font-weight: bold;

    .base-title {
      cursor: move !important;
    }
  }

  .ant-modal-body {
    padding: 0;

    > .scrollbar > .scrollbar__bar.is-horizontal {
      display: none;
    }
  }

  &-large {
    top: 60px;

    &--mini {
      top: 16px;
    }
  }

  & &-header {
    margin-bottom: 0;
    padding: 16px;
    border-bottom: 1px solid var(--ant-color-border-secondary);
  }

  &-content {
    padding: 0 !important;
    box-shadow:
      0 4px 8px 0 rgb(0 0 0 / 20%),
      0 6px 20px 0 rgb(0 0 0 / 19%);
  }

  & &-footer {
    margin-top: 0;
    padding: 10px 16px;
    border-top: 1px solid var(--ant-color-border-secondary);

    button + button {
      margin-left: 10px;
    }
  }

  & &-close {
    top: 0;
    right: 14px;
    width: auto;
    height: auto;
    outline: none;
    background: transparent !important;
    font-weight: normal;

    &:hover {
      background-color: transparent;
      color: var(--ant-color-text-tertiary);
    }
  }

  & &-close-x {
    display: inline-block;
    height: 56px;
    line-height: 56px !important;
  }

  &-confirm-body {
    .ant-modal-confirm-content {
      // > * {
      //   color: @text-color-help-dark;
      // }
    }
  }

  &-confirm-confirm.error .ant-modal-confirm-body > .anticon {
    color: var(--ant-color-error);
  }

  &-confirm-btns {
    .ant-btn:last-child {
      margin-right: 0;
    }
  }

  &-confirm-info {
    .ant-modal-confirm-body > .anticon {
      color: var(--ant-color-warning);
    }
  }

  &-confirm-confirm.success {
    .ant-modal-confirm-body > .anticon {
      color: var(--ant-color-success);
    }
  }
}

.ant-modal-confirm .ant-modal-body {
  padding: 24px !important;
}

@media screen and (max-height: 600px) {
  .ant-modal {
    top: 60px;
  }
}

@media screen and (max-height: 540px) {
  .ant-modal {
    top: 30px;
  }
}

@media screen and (max-height: 480px) {
  .ant-modal {
    top: 10px;
  }
}
